
import Vue from 'vue'
import Router from 'vue-router'
import Book from '@/page/book'
import User from '@/page/user'
import Area from '@/page/area'
import Type from '@/page/type'
import Loan from '@/page/loan'
import Filing from '@/page/filing'
import Layout from '@/page/layout'
import Login from '@/page/Login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/layout',
      name: 'Layout',
      component: Layout,
      children: [{
        path: 'book',
        name: 'Book',
        component: Book
      }, {
        path: 'user',
        name: 'User',
        component: User
      }, {
        path: 'area',
        name: 'Area',
        component: Area
      }, {
        path: 'type',
        name: 'Type',
        component: Type
      }, {
        path: 'loan',
        name: 'Loan',
        component: Loan
      }, {
        path: 'filing',
        name: 'Filing',
        component: Filing
      }
    ]
    },
  ]
})
